package com.ruoyi.ftrl.common;

import java.util.HashMap;
import java.util.Map;  

public class MeasurementMapping {  
    private static final Map<String, String> measurementMap = new HashMap<>();  

    static {  
        measurementMap.put("50", "A相电压");  
        measurementMap.put("51", "B相电压");  
        measurementMap.put("52", "C相电压");  
        measurementMap.put("56", "A相电流");
        measurementMap.put("57", "B相电流");
        measurementMap.put("58", "C相电流");
//        measurementMap.put("56", "A相功率");
//        measurementMap.put("57", "B相功率");
//        measurementMap.put("58", "C相功率");
        measurementMap.put("59", "电表A相功率");  
        measurementMap.put("60", "电表B相功率");  
        measurementMap.put("61", "电表C相功率");  
        measurementMap.put("62", "电表总功率");  
        measurementMap.put("63", "电表总无功功率");  
        measurementMap.put("64", "电表正向总电能");  
        measurementMap.put("65", "电表反向有功总电能");  
    }  

    public static String getMeasurementDescription(String key) {  
        return measurementMap.getOrDefault(key, "未知测量项");  
    }  
}